package net.huashitong.ssydt.provider.pk.mapper;


import net.huashitong.ssydt.base.dao.LongMapper;
import net.huashitong.ssydt.pk.entity.SsPkYzddMyRank;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SsPkYzddMyRankMapper extends LongMapper<SsPkYzddMyRank> {

    SsPkYzddMyRank getByMatchRecordIdWithUserId(SsPkYzddMyRank ssPkYmdxMyRank);

    /**
     * 根据规则统计排名
     *
     * @param ssPkYzddMyRank
     * @return
     */
    int getRankByHighestScoreDescAndHighestGmtModifiedAsc(SsPkYzddMyRank ssPkYzddMyRank);

    List<SsPkYzddMyRank> findHighestScoreDescByMatchRecordId(Long matchRecordId);
}